import axios from 'axios'
const searchData = axios.create({
  baseURL: '/homesearch',
  timeout: 10000
})
const movie = axios.create({
  baseURL: 'https://m.maizuo.com'
})
movie.interceptors.request.use((config) => {
  config.headers = {
    ...config.headers,
    'X-Client-Info':
      '{"a":"3000","ch":"1002","v":"5.2.1","e":"16630376842063096130568193","bc":"310100"}',
    'X-Host': 'mall.film-ticket.film.list'
  }
  return config
})
export { searchData, movie }
